package egovframework.nanum.portal.cnfg.common.configuration;

import org.springframework.core.env.Environment;

import com.nanum.portal.cnfg.common.file.FileManager.FileType;

public class FileSubLocationRegistry extends ConfigurationRegistry<FileType> {
	private Environment env;
	
	public FileSubLocationRegistry(Environment env) {
		this.env = env;
		this.initialize();
	}
	
	private void initialize() {
		this.add(FileType.ADDRESS	, env.getProperty("upload.adr.sublocation"));
		this.add(FileType.APPROVAL	, env.getProperty("upload.apr.sublocation"));
		this.add(FileType.BOARD		, env.getProperty("upload.brd.sublocation"));
		this.add(FileType.JOURNAL	, env.getProperty("upload.jnl.sublocation"));
		this.add(FileType.NOTE		, env.getProperty("upload.not.sublocation"));
		this.add(FileType.MAIL		, env.getProperty("upload.mai.sublocation"));
		this.add(FileType.WEBDISK	, env.getProperty("upload.doc.sublocation"));
		this.add(FileType.CALENDAR	, env.getProperty("upload.sch.sublocation"));
	}
}
